package com.yuan.order.repository;

import com.yuan.order.dataobject.OrderDetail;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 订单详情
 *
 * @Author yuan
 * @Date 2021/2/25 13:38
 */
public interface OrderDetailRepository extends JpaRepository<OrderDetail, String> {
    /**
     * 通过订单id查找订单
     *
     * @param orderId 订单id
     */
    List<OrderDetail> findByOrderId(String orderId);
}
